package ldk.fakewifi;

import android.text.TextUtils;

/**
 * Created by ke on 16-10-23.
 * 返回是否是需要监听伪装的包名
 */
public class NeedsToFakeWifi {
    @SuppressWarnings("unused")
    private static final String TAG = "NeedsToFakeWifi";

    private static NeedsToFakeWifi s_instance;
    private NeedsToFakeWifi(){}

    public static NeedsToFakeWifi getInstance(){
        if(s_instance == null){
            synchronized (NeedsToFakeWifi.class){
                if(s_instance == null) s_instance = new NeedsToFakeWifi();
            }
        }

        return s_instance;
    }

    /* 返回报名对应的程序是否需要监听伪装成wifi*/
    public boolean isNeedsToFakeWifi(String packageName){
        if("com.alibaba.android.rimet".equals(packageName)){
            return true;
        }

//        if(TextUtils.isEmpty(packageName)) return false;
//        if(packageName.startsWith("com.netease")) return true;
        return false;
    }
}
